﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditPosting.aspx.cs" Inherits="_Default" MasterPageFile="~/Student/Student.master" Title = "Edit Posting"%>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxNewsControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
        
    
        SelectCommand="SELECT Posting.Uploaded_Date, Posting.Description, Posting.Painting, Posting.PostingID, Competition.Competition_Name, Posting.StudentID FROM Posting INNER JOIN Competition ON Posting.CompetitionID = Competition.CompetitionID WHERE (Posting.StudentID = @StudentID)">
        <SelectParameters>
            <asp:SessionParameter Name="StudentID" SessionField="Student" />
        </SelectParameters>
    </asp:SqlDataSource>
<dx:ASPxNewsControl ID="ASPxNewsControl1" runat="server" 
    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
    DataSourceID="SqlDataSource1" DateField="Uploaded_Date" 
    HeaderTextField="Competition_Name" ImageUrlField="Painting" 
    NameField="PostingID" NavigateUrlField="PostingID" 
    NavigateUrlFormatString="~/Student/EditPostingDetails.aspx?id={0}" 
    PagerAlign="Justify" PagerPanelSpacing="1px" 
    SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" TextField="Description" 
    Width="100%">
    <Items>
        <dx:NewsItem Date="2013-01-13" HeaderText="Ao thu" Text="asasasas">
            <Image Url="~/Student/UploadImages/StudentID_S08012013-H01_Date_Sunday, January 13, 2013.jpg">
            </Image>
        </dx:NewsItem>
    </Items>
    <ItemSettings DateHorizontalPosition="OutsideRight" 
        DateVerticalPosition="Bottom" ShowHeaderAsLink="True" ShowImageAsLink="True" 
        TailPosition="NewLine" TailText="Edit">
    </ItemSettings>
    <ItemImage Height="150px" Width="150px">
    </ItemImage>
    <BackToTopImage>
        <SpriteProperties CssClass="dxWeb_ncBackToTop_DevEx" />
    </BackToTopImage>
    <BackToTopStyle HorizontalAlign="Right" ImageSpacing="3px">
    </BackToTopStyle>
    <ItemDateStyle Spacing="0px">
    </ItemDateStyle>
    <ItemContentStyle LineHeight="14px">
    </ItemContentStyle>
    <ItemHeaderStyle Font-Bold="True" Font-Names="Algerian" Font-Overline="False" 
        Font-Size="Large" ForeColor="#FF3300">
    </ItemHeaderStyle>
    <ItemLeftPanelStyle Spacing="37px">
        <Paddings PaddingTop="3px" />
    </ItemLeftPanelStyle>
    <PagerSettings ShowDefaultImages="True">
        <AllButton Text="">
        </AllButton>
        <FirstPageButton Text="">
        </FirstPageButton>
        <LastPageButton Text="">
        </LastPageButton>
        <NextPageButton Text="">
        </NextPageButton>
        <PrevPageButton Text="">
        </PrevPageButton>
        <Summary Position="Inside" />
    </PagerSettings>
    <LoadingPanelImage Url="~/App_Themes/DevEx/Web/Loading.gif">
    </LoadingPanelImage>
    <LoadingPanelStyle ImageSpacing="5px">
    </LoadingPanelStyle>
    <DisabledStyle ForeColor="#B1B1B8">
    </DisabledStyle>
</dx:ASPxNewsControl>
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
    </asp:Content>
